// import Vue from 'vue'
export default {
	// 开启命名空间
	namespaced: true,

	state: () => ({
		token: uni.getStorageSync('vue').token || '',
		username: uni.getStorageSync('vue').token || '',
		refreshToken: uni.getStorageSync('vue').refreshToken || '',
		LoginStatus: uni.getStorageSync('vue').LoginStatus || null,

	}),
	mutations: {
		GET_TOEKN: (state, token) => {
			state.token = token
		},
		GET_REFRESSHTOKEN: (state, refreshToken) => {
			state.refreshToken = refreshToken
		},
		GET_LOGINSTATUS: (state, LoginStatus) => {
			state.LoginStatus = LoginStatus
		},
		GET_USERNAME: (state, username) => {
			state.username = username
		},

	},
	getters: {}
}